package com.pxmeta.party.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@TableName("kt_activity_food_stall")
@ApiModel(value = "吃货大排档", description = "活动表")
@Data
public class ActivityFoodStall {

    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("礼物最大值")
    private Integer totalNumber;

    @ApiModelProperty("礼物id")
    private Integer giftId;

    @ApiModelProperty("当前数量")
    private Integer currentNumber;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "序号")
    private Integer number;

    @ApiModelProperty(value = "是否删除")
    @TableLogic(value = "0",delval = "1")
    private Integer isDel;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;

}
